using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace Unibot
{
    class Goal : Element
    {
        bool endlevel;

        public Goal()
        {

        }
        public override void update(GameTime gt)
        { //do nothing for regular platforms
        }

        public override void onCollisionWith(Element other, GameTime gt)
        {
            if (other.type == ElementType.Player)
            {
                endlevel = true;
            }
        }

        public override void Draw(SpriteBatch sb)
        {
        }

        public bool levelOver() { return endlevel; }
    }
}